$.slideshow = {
	slideshow:false,
	current:false,
	defaults: {
		speed:5000
	},
	slide: function() {
		var next = this.current.next();
		if(!next.length) {
			next = $(this.slideshow).children('li:first');
		}
		
		this.current.fadeOut(1000, function() {
			next.fadeIn(1000);
			
		});
		this.current = next;
	}
};

$.fn.slideshow = function(options) {		
	var params = $.extend({}, $.slideshow.defaults, options);
	return this.each(function() {
		$.slideshow.current = $(this).children('li:first');
		$.slideshow.slideshow = this;
		$(this).children('li').hide();
		$.slideshow.current.show();
		window.setInterval('$.slideshow.slide()', params.speed);
		
	});
};

